home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Drivin' Route 66
/
Drivin' Route 66 (1995)(Creative Multimedia)[Mac-PC].iso
/
pc
/
rtsm.dir
/
00050_Script_MAIN
< prev
next >
Wrap
Text File
|
1995-08-18
|
3KB
|
126 lines
on startMovie
repeat with s = 3 to 8
set the visible of sprite s to 0
set the lineSize of sprite s to 0
end repeat
noSprites
end
on puppetExternalSound soundname
global where
sound playfile 1, where & soundname
updatestage
end
on stopMovie
noSprites
unloadCast
end
on noSprites
repeat with p = 1 to 48
puppetSprite p,0
end repeat
updateStage
end
on synchStory
if soundBusy(1) then
repeat while soundBusy(1)
if the mouseDown then
exit repeat
puppettransition 23
end if
puppettransition 23
end repeat
end if
if ((the frame + 1) = marker(1)) OR (the frame = 66) OR (the mouseDown) then
sound stop 1
sound stop 2
puppetTransition 0
updateStage
if the frame < 45 then
go "menu 1"
else
go "menu 2"
end if
end if
end
on gomenu
global storyTarget
-- Handles mouseDown in menu
repeat with s = 3 to 8
if rollOver(s) then
set the foreColor of sprite s to 209
set the visible of sprite s to 1
updateStage
-- Put here to ensure a valid click:
-- put the name of cast mouseCast() into cName
repeat while the mouseDown
nothing
end repeat
doDelay
sound stop 1
sound stop 2
repeat with s = 3 to 8
puppetSprite s,0
updateStage
end repeat
put the name of cast mouseCast() into cName
if char 1 of cName = "s" then
delete char 1 of cName
put integer(cName) into storyTarget
-- put storyTarget
go ("story" && string(storyTarget))
end if
exit repeat
else
set the foreColor of sprite s to 29
set the visible of sprite s to 0
end if
end repeat
updateStage
end
on dealWithManics
end
on idle
global storyTarget
cursor -1
put the frame into f
if f = 21 OR f = 26 then
-- menu 1:
set the mouseDownScript to "gomenu"
repeat with s = 3 to 8
puppetSprite s,1
if rollOver(s) then
set the foreColor of sprite s to 29
if the lineSize of sprite s <> 3 then
set the lineSize of sprite s to 3
end if
if the visible of sprite s <> 1 then
set the visible of sprite s to 1
end if
else
set the foreColor of sprite s to 29
set the visible of sprite s to 0
set the lineSize of sprite s to 0
end if
updateStage
end repeat
else
set the mouseDownScript to ""
-- ??
end if
if soundBusy(1) then
set the volume of sound 1 to 160
set the volume of sound 2 to 64
else
set the volume of sound 2 to 150
end if
end